#include <stdio.h>

#define n 3

int main() {
	setbuf(stdout, NULL);

	// NOTE: Variable declaration
	int original_number;
	int numerical_digit[n];


	// NOTE: Inputs
	scanf("%d", &original_number);
	int buf = original_number;

	// NOTE: Process
	for (int i = n - 1; i >= 0; --i) {
		numerical_digit[i] = original_number % 10;
		original_number /= 10;
	}

	// NOTE: Outputs
	for (int i = 0; i < n; ++i) {
		for (int j = 0; j < numerical_digit[i]; ++j) {
			if (i == 0) {
				printf("B");
			} else if (i == 1) {
				printf("S");
			} else {
				for (int k = 0; k < numerical_digit[i]; ++k) {
					printf("%d", k + 1);
				}

				break;
			}
		}
	}


	// NOTE: Ending
	return 0;
}